package io;

import org.junit.Test;

import java.io.File;
import java.io.IOException;

/**
 * @description: 文件路径得测试
 * @author Administrator
 * @date 2022/2/5 23:19
 * @version 1.0
 */
public class FilePathTest {

    // 相较于module
    @Test
    public void test() {
        File f = new File("a.txt");
        System.out.println(f.exists()); //true
    }

    // 相较于工程
    public static void main(String[] args) throws IOException {
        File f = new File("a.txt");
        System.out.println(f.exists());// false
    }
}
